<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-form ref="form" :model="newfile" :rules="rules" label-width="100px" id="mvcfm">
      <div class="form-unit">
        <span class="mvc-title-left"> 文件编辑 </span>
        <span class="mvc-title-right">
          <el-button @click="('&link_item_id='+param.CMID+'&folder_id='+param.CMID9+'')" type='success' size="mini"><i class='fa fa-check'></i>保存</el-button>
        </span>
      </div>
      <div>
        <input type="hidden" id="subject" name="subject" :value="param.subject">
        <el-row>
          <el-col :span="24">
            <el-form-item label="内容" prop="filename">
              <el-input type="textarea" v-model="newfile.filename" ttparea=350></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </div>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'ProductOfficeTecFileBuild',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        newfile: {
          filename: null,
        },
        loading: false,
        rules: {}
      }
    },
    created() {
      this.getData();
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/psi/product/ProductAction/productOfficeTecFileBuild?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
    },
  }
</script>
